#Set amrex options
set(USE_XSDK_DEFAULTS OFF)
set(AMReX_SPACEDIM "${REMORA_DIM}" CACHE STRING "Number of physical dimensions" FORCE)
set(AMReX_PIC OFF)
set(AMReX_MPI ${REMORA_ENABLE_MPI})
set(AMReX_OMP ${REMORA_ENABLE_OPENMP})
set(AMReX_PRECISION "${REMORA_PRECISION}" CACHE STRING "Floating point precision" FORCE)
set(AMReX_EB OFF)
set(AMReX_FORTRAN_INTERFACES OFF)
set(AMReX_LINEAR_SOLVERS OFF)
set(AMReX_AMRDATA OFF)
set(AMReX_PARTICLES OFF)
set(AMReX_SENSEI OFF)
set(AMReX_CONDUIT OFF)
set(AMReX_HDF5 "${REMORA_ENABLE_HDF5}" CACHE STRING "Enable HDF5 support in AMReX" FORCE)
set(AMReX_ENABLE_TESTS OFF)
set(AMReX_FPE OFF)
set(AMReX_ASSERTIONS OFF)
set(AMReX_BASE_PROFILE OFF)
set(AMReX_TINY_PROFILE ${REMORA_ENABLE_TINY_PROFILE})
set(AMReX_TRACE_PROFILE OFF)
set(AMReX_MEM_PROFILE OFF)
set(AMReX_COMM_PROFILE OFF)
set(AMReX_BACKTRACE OFF)
set(AMReX_PROFPARSER OFF)
set(AMReX_CUDA ${REMORA_ENABLE_CUDA})
set(AMReX_ACC OFF)
set(AMReX_PLOTFILE_TOOLS ${REMORA_ENABLE_FCOMPARE})

set(AMReX_FORTRAN OFF)
if(REMORA_ENABLE_FUNWAVE_FORT) 
  set(AMReX_FORTRAN ON)
endif()

set(AMReX_PARTICLES OFF)
if(REMORA_ENABLE_PARTICLES)
  set(AMReX_PARTICLES ON)
endif()

if(REMORA_ENABLE_CUDA)
  set(AMReX_GPU_BACKEND CUDA CACHE STRING "AMReX GPU type" FORCE)
  set(AMReX_CUDA_WARN_CAPTURE_THIS OFF)
  set(AMReX_CUDA_ERROR_CAPTURE_THIS ON)
endif()

if(REMORA_ENABLE_HIP)
  set(AMReX_GPU_BACKEND HIP CACHE STRING "AMReX GPU type" FORCE)
endif()

if(REMORA_ENABLE_SYCL)
  set(AMReX_GPU_BACKEND SYCL CACHE STRING "AMReX GPU type" FORCE)
endif()
